package com.xcity.pomelo.push.msg;

import com.xcity.game.combat.Combat;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class CombatEndPush extends AbstractMessagePush {

	private byte result;
	private Combat.Type type; // 战斗类型
	private int id; // 战斗id
	private Object ref; // 额外数据
	
	public CombatEndPush(byte result, Combat.Type type, int id) {
		this(result, type, id, null);
	}
	
	public CombatEndPush(byte result, Combat.Type type, int id, Object ref) {
		super(MSG_COMBAT_END);
		this.result = result;
		this.type = type;
		this.id = id;
		this.ref = ref;
	}

	public byte getResult() {
		return result;
	}

	public void setResult(byte result) {
		this.result = result;
	}

	public Combat.Type getType() {
		return type;
	}

	public void setType(Combat.Type type) {
		this.type = type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Object getRef() {
		return ref;
	}

	public void setRef(Object ref) {
		this.ref = ref;
	}
	
}
